package com.db.stockexchange.common.messages.server;

import com.db.stockexchange.common.OrderSide;
import com.db.stockexchange.common.OrderStatus;

public class ExecutionRejectMessage extends ExecutionReportMessage {
	String detail;

	public ExecutionRejectMessage(String senderCompID, int orderID,
			String symbol, OrderSide side, String detail) {
		super(senderCompID, orderID, symbol, side, OrderStatus.REJECTED);
		this.detail = detail;
	}

	public String getDetail() {
		return detail;
	}
	
	@Override
	public String toString() {
		return new StringBuilder().append(super.toString())
				.append(" <").append(detail).append(">").toString();
	}
}
